package com.huawei;

import org.junit.Test;

import java.util.Scanner;

/**
 * Created by Z-hong on 2024/7/2.
 */

public class HJ1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int count = 0;
        while(in.hasNext()){
            String str=in.next();
            count =str.length();
        }
        System.out.println(count);

    }
    @Test
    public void test(){

    }
}
